<?php
	defined('_JEXEC') or die; //no direct access
	echo $this->loadTemplate('searchform');
?>
<br />
<input type="hidden" name="view" value="searchfile" />

<?php
	if(JRequest::getVar('location')) //if in search page
	{
		if(sizeof($this->results) == 0) //no file found
		{
			echo 'No file found.';
			//echo $this->loadTemplate('searchsuggestion');
		}
		else
		{
			echo $this->loadTemplate('searchresult');
		}
	}
?>
